/**
 * Created by LeungZ on 2016/8/22.
 */
class File {
    constructor(dockerFile, $modalInstance, $timeout, $window) {
        'ngInject';
        this._modalInstance = $modalInstance;
        this.dckFile = dockerFile;

        $timeout(function () {
            angular.element('.auto-height').css({
                'max-height': ($window.innerHeight - 130) + 'px',
                'overflow-y': 'auto'
            });
        }, 0, false)
    }

    cancel() {
        this._modalInstance.dismiss('cancel');
    }
}


export default File